/**
 * @(#)ClientEffectDAOImpl.java 2017年6月14日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IClientEffectDAO;
import org.jsbd.boss.domian.channel.ClientEffectVo;
import org.jsbd.boss.domian.channel.MiguUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import edu.hziee.common.queue.IBatchExecutor;

/**
 * TODO 请加入本类的说明
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service("clientEffectDao")
public class ClientEffectDAOImpl extends CrackUserBaseDao implements IClientEffectDAO, IBatchExecutor<ClientEffectVo> {
	public static final Logger LOGGER = LoggerFactory.getLogger(ClientEffectDAOImpl.class);

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IClientEffectDAO#insertClientEffect(org.jsbd.boss.domian
	 * .channel.ClientEffectVo)
	 */
	@Override
	public void insertClientEffect(ClientEffectVo clientEffectVo) {
		super.insert("qy_migu_effect.INSERT_CLIENT_EFFECT", clientEffectVo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IClientEffectDAO#createClientEffectTable(org.jsbd.boss
	 * .domian.channel.ClientEffectVo)
	 */
	@Override
	public Integer createClientEffectTable(ClientEffectVo clientEffectVo) {
		return super.update("qy_migu_effect.CREATE_CLIENT_EFFECT", clientEffectVo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see edu.hziee.common.queue.IBatchExecutor#execute(java.util.List)
	 */
	@Override
	public void execute(List<ClientEffectVo> Effects) {
		super.batchUpdate("qy_migu_effect.DELETE_CLIENT_EFFECT", Effects);
	}

	@Override
	public List<String> selectEffectList(ClientEffectVo clientEffectVo) {
		return super.queryForList("qy_migu_effect.SELECT_CLIENT_EFFECT_LIST", clientEffectVo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IClientEffectDAO#batchInsertClientEffect(java.util.
	 * List)
	 */
	@Override
	public void batchInsertClientEffect(List<ClientEffectVo> clientList) {
		super.batchInsert("qy_migu_effect.INSERT_CLIENT_EFFECT", clientList);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IClientEffectDAO#batchDeleteClientEffect(java.util.
	 * List)
	 */
	@Override
	public void batchDeleteClientEffect(List<ClientEffectVo> clientList) {
		super.batchUpdate("qy_migu_effect.DELETE_CLIENT_EFFECT", clientList);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IClientEffectDAO#batchInsertEguanEffect(java.util.List)
	 */
	@Override
	public void batchInsertEguanEffect(List<ClientEffectVo> clientList) {
		super.batchInsert("qy_migu_effect.INSERT_EGUAN_CLIENT_EFFECT", clientList);
	}
}
